function matrices = getConfusionMatrices(res, lab)
	uniqueLabels = unique(lab);
	matrices = {};
	for(clf=1:size(res,2))
		cm=zeros(size(uniqueLabels,1),size(uniqueLabels,1)+1);
		for(row=1:size(lab,1))
			cm(lab(row,1)+1,res(row,clf)+1)+=1;
		end;
		matrices{size(matrices,2)+1}=cm;
	end;
end;
